class AI {
	
public: 
	void newAI() {
	for (int yy= vehicleNumStart; yy< vehicleNumEnd && loopout2==0; yy++) {
						if (O[xx][TM] != O[yy][TM]
						&& O[yy][L]>=0
						&& dbSqrt( pow((O[xx][X] - O[xx][DX]),2)
							+ pow((O[xx][Z] - O[xx][DZ]),2) )<5
						&& O[xx][ET]==0
						&& withinRange(xx,yy,200) ==1) {
								
							
							  //if ((withinRange(xx,yy,100) ==0)
								//  && (withinRange(xx,yy,150) ==1)
								//  && O[xx][ET]==0)
							  
									  
										//dbMoveObject(xx,.2);
									O[xx][ET]=yy;
										//dbPointObject(xx, O[yy][X],0,O[yy][Z]);

							  
							  

									
									//dbPointObject(xx, O[yy][X],0,O[yy][Z]);
									//O[xx][FW]=fire;

							  loopout2=1;
							  //else changeMusic(7);
				
						}
						
					}
	
	
	
   }
};

